<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="icon" href="../images/icon.jpg" type="image/x-icon">
	<link rel="stylesheet" type="text/css" href="../css/generalstyle.css">
	
	<title>资源管理</title>
	
  </head>
  
  <body>
  <%@ include file = "adminRestop.jsp" %>
  <%
  	Vector<String[]> res = (Vector<String[]>)request.getAttribute("list");
  	if(res == null|| res.size()==0)
  	{
  		out.println("<center>");
	    out.println("<font color=red size=5>没有此资源</font>");
	    out.println("<br><br><a href="
	   	     +"servlet/ListServlet?action=adminList&&gId=0>返回</a></center>");
  	}
  	else
  	{
   %>
   <table align="center" width="80%" cellspacing="1" bgcolor="black">
     <tr width="60%" height="30" bgcolor="white">
		<th>编号</th>
		<th>组别</th>
		<th>规格</th>
		<th>价格?/时段</th>
		<th>描述</th>
		<th>状态</th>
		<th>修改/删除</th>
	 </tr>
	 <% 
	    int color=0;//改变每行颜色
	 	for(String []s:res)
	    {
	  %>
	  <tr bgcolor=<%= color%2==0?"eeffee":"ffeeee" %>>
	   <td align="center"><%= s[0] %></td>
	   <td align="center"><%= s[7] %></td>
	   <td align="center"><%= s[1] %></td>
	   <td align="center"><%= s[2] %>￥</td>
	   <td align="center"><%= s[3] %></td>
	   <td align="center"><%= s[4] %></td>
	   <td><a href=servlet/ListServlet?action=edit&&rid=<%= s[6] %>>修改/删除</a></td>
	  </tr>
	  <%
	       color++;
	     }
	  }
	   %>
	</table>
  </body>
</html>
